﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[XmlInclude(typeof(SubConversation))]
[XmlInclude(typeof(Conversation))]
[XmlInclude(typeof(CallConversation))]
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tConversationNode")]
[XmlRoot("conversationNode", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public abstract partial class ConversationNode : BaseElement
{
    /// <remarks/>
    [XmlElement("participantRef")]
    public XmlQualifiedName[] ParticipantRef { get; set; } = default!;

    /// <remarks/>
    [XmlElement("messageFlowRef")]
    public XmlQualifiedName[] MessageFlowRef { get; set; } = default!;

    /// <remarks/>
    [XmlElement("correlationKey")]
    public CorrelationKey[] CorrelationKey { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("name")]
    public string Name { get; set; } = default!;
}
